package models

import "goapp-web-server/app/utils/orm"

type SysRole struct {
	Model       `xorm:"extends"`
	Name        string `json:"name" xorm:"name"`
	Identity    string `json:"identity" xorm:"identity"`
	Description string `json:"description" xorm:"description"`
	Enabled     bool   `json:"enabled" xorm:"enabled"`
}

func (u SysRole) TableName() string {
	return "sys_role"
}

func init() {
	orm.RegisterModel(&SysRole{})
}
